<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html >
<html>
<%@ include file="common/head.jsp"%>

<body style="background: url(images/big/194814.jpg) no-repeat;background-size: cover; ">
<div class="preloader">
        <svg class="circular" viewBox="25 25 50 50">
			<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10" /> </svg>
    </div>
  
    <div id="main-wrapper">
     <div class="unix-login">
            <div class="container-fluid">
                <div class="row justify-content-center">
                    <div class="col-lg-4">
                        <div class="login-content card" style="background: rgba(225,225,225,0.5);">
                            <div class="login-form" style="background: rgba(225,225,225,0);">
                                <h4>登陆</h4>
                                <form action="${pageContext.request.contextPath}/loginservlet">
                                    <div class="form-group">
                                        <label>账号</label>
                                        <input type="text" class="form-control" id="user-zh" name="name" placeholder="用户名">
                                    </div>
                                    <div class="form-group">
                                        <label>密码</label>
                                        <input type="password" class="form-control" name="pwd"  placeholder="密码" >
                                    </div>
                                    <div class="checkbox">
                                        
                                        <label class="pull-right">
        										<a herf="javascript:;" id="login"> 管理员登陆</a>
        								</label>
        								<input type="hidden" class="userid" value="user" name="opt" id="opt">

                                    </div>
                                    <button type="submit" class="btn btn-primary btn-flat m-b-30 m-t-30">GO！</button>
                                    
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <%@ include file="common/js.jsp"%>
       
<script type="text/javascript">
$("#login").click(function(){
	if($("#opt").val() == "user"){
		$("#opt").val("admin");
		$("#login").html("员工登录");
	}else {
		$("#opt").val("user");
		$("#login").html("管理员登陆");
	}

})
</script>
</body>
</html>